package com.java1412.controller.api;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 做页面跳转
 *
 * @author java1412
 * @since 2023-08-07 11:22:51
 */
@Controller
public class PageController {

    @GetMapping("/{pageName}.html")
    public String index(
            @PathVariable("pageName") String pageName
    ) {
        System.out.println(pageName);
        return pageName;
    }
}
